package proccrontrol

import (
	"communication-system/common/messages"
	"encoding/json"
	"fmt"
)

func outputGroupMes(mes *messages.Message) {

	var mess messages.SmsMes
	err :=json.Unmarshal([]byte(mes.Data),&mess)
	if err != nil {
		return
	}

	//显示信息
	info :=fmt.Sprintf("用户id:%d,跟大家说一句话:%s",mess.UserId,mess.Conent)
	fmt.Println(info)
	fmt.Println()
}